﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Linq;
using System.Threading.Tasks;
using System.Windows.Forms;
using DevExpress.XtraEditors;
using Lamex.mIE.Calculate;

namespace Lamex.mIE.UI
{
    public partial class frmBatchUpdate : DevExpress.XtraEditors.XtraForm
    {
        public frmBatchUpdate()
        {
            InitializeComponent();
            string[] arr = new string[] { "Stander","BOM" };

            foreach (string info in arr)
            {
                cmbBatchType.Properties.Items.Add(info);
                
            }
        }

        private void simpleButton1_Click(object sender, EventArgs e)
        {
            if(cmbBatchType.Text!= "BOM")
            {
                FeatureCalHelper.FeatrueStanderCal();
            }
            else
            {
                FeatureCalHelper.FeatrueBomCal();
            }
        }
    }
}